---
title: Separate Away
date: 2024-05-22
description: Vertical separation of words
author: whyismynamerudy
published: true
---

<ComponentPreview name="separate-away-demo" />

<Steps>

### Installation

Copy and paste the following code into your project.

```text
components/magicui/separate-away.tsx
```

<ComponentSource name="separate-away" />

</Steps>

## Props

| Prop           | Type   | Description                                   | Default |
| -------------- | ------ | --------------------------------------------- | ------- |
| className      | string | The class name to be applied to the component |         |
| upperText      | string | The words to be separated upwards             | "       |
| lowerText      | string | The words to be separated downwards           | "       |
| duration       | number | Duration of the separation animation          | 1.5     |
| hiddenOpacity  | number | Opacity of the text when it's hidden          | 0       |
| visibleOpacity | number | Opacity of the text when it's visible         | 1       |
